package com.lagou.sqlSession;

import com.lagou.pojo.Configuration;

/**
 * @author liuyj
 * @Title: DefaultSqlSessionFactory
 * @create 2020-05-28 11:38
 * @ProjectName lagou_project
 * @Description: TODO
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory{

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
